package lims.client;


import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JScrollPane;

import java.awt.BorderLayout;


import javax.swing.JPanel;
import javax.swing.JButton;

import java.awt.FlowLayout;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class DialogPrint extends JDialog{
	private static Log logger=LogFactory.getLog(DialogPrint.class);
	/**
	 * 
	 */
	private static final long serialVersionUID = 8518108909123164148L;
	
	public JPanel browser=new JPanel();
	
	public DialogPrint(JFrame owner) {
		super(owner);
	
		
		setTitle("打印进度");
		setSize(800,600);
		setModal(false);
		JScrollPane scrollPane = new JScrollPane();
		getContentPane().add(scrollPane, BorderLayout.CENTER);
		
		scrollPane.setViewportView(browser);
		
		JPanel panel = new JPanel();
		getContentPane().add(panel, BorderLayout.NORTH);
		FlowLayout flowLayout = (FlowLayout) panel.getLayout();
		flowLayout.setAlignment(FlowLayout.LEFT);
		
		JButton btnNewButton = new JButton("打印");
		panel.add(btnNewButton);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
			}
		});
	}

}
